﻿import request from '../index.js';

function getAllQuery(data) {
    return request({ url: `/DataExport/DoPager`, method: 'post', data: data });
}

function deleteExport(data) {
    return request({ url: `/DataExport/Delete/` + data, method: 'delete'});
}
function createExport(data) {
    return request({ url: `/DataExport/CreateExportPack`, method: 'get' });
}
function downLoadFiles(data) {
    return request({ url: `/DataExportUpDnld/Download/` + data, method: 'get', responseType: 'arraybuffer' });
}

export default {
    getAllQuery,
    downLoadFiles,
    deleteExport,
    createExport
};